package com.shxy.rlzy.service;

import com.shxy.rlzy.entity.Role;
import com.baomidou.mybatisplus.extension.service.IService;
import com.shxy.rlzy.entity.User;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author tanhao
 * @since 2021-08-16
 */
public interface IRoleService extends IService<Role> {
    /**
     * 根据名称获取角色信息
     * @param name
     * @return
     */
    Role getByName(String name);

    /**
     * 根据编码获取角色信息
     * @param code
     * @return
     */
    Role getByCode(String code);

    Role getByUsername(String username);

    Role getByUserId(long userId);

    Role getById(long roleId);
}
